package net.qunzhi.modules.cms.dao;

import net.qunzhi.modules.cms.entity.TbCopyFlowDataEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qunzhi.modules.cms.query.DailyRecordListQuery;
import net.qunzhi.modules.cms.vo.DailyRecordVO;
import net.qunzhi.modules.cms.vo.DataResultVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 手抄的流量计数据
 * 
 * @author zjr
 * @date 2021-09-10 15:48:00
 */
@Mapper
public interface TbCopyFlowDataDao extends BaseMapper<TbCopyFlowDataEntity> {

    List<Integer> getUndoDataIdsByDateTime(LocalDateTime dateTime);

    List<Integer> getUndoDataIdsByDate(String dateTime);

    List<DataResultVO> getDataResult(@Param("ids") Integer[] ids, @Param("query") DailyRecordListQuery query);

    //cpk
    List<Map<String, Object>> getDailyFlowByAreaId(@Param("id") Integer id, @Param("start") String start, @Param("end") String end);


}
